soft-reboot: Many changes
authorColin Walters <walters@verbum.org>
Mon, 30 Jun 2025 21:07:18 +0000 (17:07 -0400)
committerColin Walters <walters@verbum.org>
Tue, 8 Jul 2025 15:34:21 +0000 (11:34 -0400)
commit6bee4a08e3294866256d08295a97652faa9e6181
treedfc45dc28a5f67361b75f0874c9165df2f3cfd1f
parent4dd1188dd029d2a6abe2b6ee713108bea60dc7df
soft-reboot: Many changes

- Add --reboot and --reset arguments
- Don't compile on centos stream 9 (missing `open_tree` glibc wrapper)
  as the functionality isn't supported by systemd there; that said
  we should also do dynamic detection
- Fix /sysroot writability
- If we target as soft reboot a deployment
  *other* than the staged one, automatically clear the staged
  deployment as otherwise the semantics are too confusing.
- Rename the APIs so they all say `soft_reboot` and not `next_root`

Signed-off-by: Colin Walters <walters@verbum.org>
13 files changed:
apidoc/ostree-sections.txt
configure.ac
man/ostree-admin-prepare-soft-reboot.xml
src/libostree/libostree-devel.sym
src/libostree/ostree-soft-reboot.c
src/libostree/ostree-sysroot-deploy.c
src/libostree/ostree-sysroot-private.h
src/libostree/ostree-sysroot.c
src/libostree/ostree-sysroot.h
src/libotcore/otcore.h
src/ostree/ot-admin-builtin-prepare-soft-reboot.c
src/ostree/ot-builtin-admin.c
tests/kolainst/destructive/soft-reboot.sh